package com.thinkgem.jeesite.common.constant;

public class Constant {
	
	// 判断名字是否是中文并以英文逗号隔开
	public static final String REG_NAME_COMMA = "^([0-9|a-z|A-Z|\u4e00-\u9fa5])+(,[0-9|a-z|A-Z|\u4e00-\u9fa5]+)*$";
	public static final String REG_MOBILE_PATTERN = "^1[3-9]{1}[0-9]{9}";
	
	public static final class Common{
		// 启用
		public static final String EMS_COMMON_ON= "1";
		// 停用
		public static final String EMS_COMMON_OFF = "2";
	}
	
	public static final class Site{
		// 微信站点id
		public static final String SITE_ID_FAULT= "1";
		// 微信站点id
		public static final String SITE_ID_WEIXIN = "3";
	}
	
	public static final class Dict{
		// 字典布尔类型：是
		public static final String DICT_BOOLEAN_YES = "1";
		// 字典布尔类型：否
		public static final String DICT_BOOLEAN_NO = "0";
		
		// 字典优惠计算方式：平均计算
		public static final String DICT_DISCOUNT_TYPE_SHARE = "1";
		// 字典优惠计算方式：按比例计算
		public static final String DICT_DISCOUNT_TYPE_RATE = "2";
	}
	
	public static final class Question{
		// 问题类型类型：单选
		public static final String QUESTION_TYP_RADIO = "radio";
		// 问题类型类型：多选
		public static final String QUESTION_TYP_CHECKBOX = "checkbox";
		// 问题类型类型：问答
		public static final String QUESTION_TYP_TEXT = "text";
	}
	public static final class CartHis{
		// 购物车历史状态，未培训
		public static final String EMS_CARTHIS_STATUS_TOTRAIN = "0";
		// 购物车历史状态，已培训
		public static final String EMS_CARTHIS_STATUS_TRAINED = "1";
		// 购物车历史状态，退款申请中
		public static final String EMS_CARTHIS_STATUS_TOREFUND = "2";
		// 购物车历史状态，已退款
		public static final String EMS_CARTHIS_STATUS_REFUNDED = "3";
	}
	public static final class Order{
		// 报名订单状态，无效（订单取消后的状态）
		public static final String EMS_ORDER_STATUS_INVALID = "-1";
		// 报名订单状态，待支付
		public static final String EMS_ORDER_STATUS_TOPAY = "0";
		// 报名订单状态，已支付
		public static final String EMS_ORDER_STATUS_SUCCESS = "1";
		// 报名订单状态，支付失败
		public static final String EMS_ORDER_STATUS_FAIL = "2";
	}
	public static final class OrderRefund{
		// 报名订单状态，待退款
		public static final String EMS_ORDERREFUND_STATUS_TOREFUND = "0";
		// 报名订单状态，已退款
		public static final String EMS_ORDERREFUND_STATUS_SUCCESS = "1";
		// 报名订单状态，退款失败
		public static final String EMS_ORDERREFUND_STATUS_FAIL = "2";
		// 报名订单状态，退款申请已取消
		public static final String EMS_ORDERREFUND_STATUS_CONCEAL = "3";
	}
}
